<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/user/dataconfig" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.dataConfig}</h1>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width: 10px;">
                <input type="checkbox" class="toggle-all" />
              </th>
              <th style="">{$Think.lang.field}{$Think.lang.keyName}</th>
              <th style="">{$Think.lang.field}{$Think.lang.name}</th>
              <th style="">{$Think.lang.belongsModule}</th>
              <th style="">{$Think.lang.whether}{$Think.lang.enable}</th>
              <th style="">{$Think.lang.spaceShow}</th>
              <th style="">{$Think.lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <volist name="list" id="vo">
              <tr data-id="{$vo['id']}">
                <td>
                  <input type="checkbox" class="toggle" />
                </td>
                <td>{$vo['fieldkey']}</td>
                <td>{$vo['fieldname']}</td>
                <td>
                  <switch name="vo.module">
                    <case value="base">{$Think.lang.basicInformation}</case>
                    <case value="intro">{$Think.lang.personalCircumstances}</case>
                    <case value="contact">{$Think.lang.contact}</case>
                  </switch>
                </td>
                <td>
                  <eq name="vo['status']" value="1">
                    <!-- <a href="#" id="cfg" kp="{$vo['id']}"><span class="page-info">{$Think.lang.yes}</span></a> -->
                    <a href="javascript:;" onclick="javascript:window.location.href='{:URL('admin/User/setStatus','id='.$vo['id'].'')}'">
                      <span class="page-info">{$Think.lang.yes}</span>
                    </a>
                    <else />
                    <!-- <a href="#" id="cfg" kp="{$vo['id']}"><span class="page-info">{$Think.lang.no}</span></a> -->
                    <a href="javascript:;" onclick="javascript:window.location.href='{:URL('admin/User/setStatus','id='.$vo['id'].'')}'">
                      <span class="page-info">{$Think.lang.no}</span>
                    </a>
                  </eq>
                </td>
                <td>
                  <eq name="vo['showspace']" value="1">
                    <a href="javascript:;" onclick="javascript:window.location.href='{:URL('admin/User/setSpace','id='.$vo['id'].'')}'">
                      <span class="page-info">{$Think.lang.yes}</span>
                    </a>
                    <else />
                    <a href="javascript:;" onclick="javascript:window.location.href='{:URL('admin/User/setSpace','id='.$vo['id'].'')}'">
                      <span class="page-info">{$Think.lang.no}</span>
                    </a>
                  </eq>
                </td>
                <td><a href="javascript:;" class="A_del">{$Think.lang.delete}</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
    </div>
    <div class="actions">
      <a href="{:URL('admin/User/addField')}" class="btn">{$Think.lang.add}{$Think.lang.field}</a>
      <a href="#" class="btn" id="J_del">{$Think.lang.delete}{$Think.lang.field}</a>
    </div>
  </div>
</body>

</html>
